{layout name="layout" /}

<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">文</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-12">
                        <a href="{:url('admin/ariclecategory/add')}" class="btn btn-success">添加</a>
                    </div>
                </div>
                <span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-success">Success</span>
<span class="label label-info">Info</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
                <div class="table-responsive">
                    <table class="table  table-bordered table-hover">
                        <tr class="active">
                            <th><input class="check-all" type="checkbox" value=""></th>
                            <th>分类标题</th>
                            <th>排序</th>
                            <th>更新时间</th>
                            <th>操作</th>
                        </tr>
                        {volist name="ariclecategoryRows" id="ariclecategoryRow"}
                        <tr class="success">
                            <td><input class="check" type="checkbox" value="{$ariclecategoryRow->id}"></td>
                            <td class="text-left">{$ariclecategoryRow->title}</td>
                            <td>{$ariclecategoryRow->sort}</td>
                            <td>{$ariclecategoryRow->update_time}</td>
                            <td>
                                <a class="btn btn-xs btn-default" href="{:url('admin/ariclecategory/edit',['id'=>$ariclecategoryRow['id']])}">编辑</a>
                                <a class="btn btn-xs btn-default delete" href="{:url('admin/ariclecategory/destroy',['id'=>$ariclecategoryRow['id']])}">删除</a>
                            </td>
                        </tr>
                        {volist name="$ariclecategoryRow->parent" id="Rows"}
                        <tr class="active">
                            <td><input class="check" type="checkbox" value="{$Rows->id}"></td>
                            <td class="text-left">┗━{$Rows->title}</td>
                            <td>{$Rows->sort}</td>
                            <td>{$Rows->update_time}</td>
                            <td>
                                <a class="btn btn-xs btn-default" href="{:url('admin/ariclecategory/edit',['id'=>$Rows['id']])}">编辑</a>
                                <a class="btn btn-xs btn-default delete" href="{:url('admin/ariclecategory/destroy',['id'=>$Rows['id']])}">删除</a>
                            </td>
                        </tr>
                        {volist name="$Rows->parent" id="Row"}
                        <tr>
                            <td><input class="check" type="checkbox" value="{$Row->id}"></td>
                            <td class="text-left">&nbsp;&nbsp;┗━━━{$Row->title}</td>
                            <td>{$Row->sort}</td>
                            <td>{$Row->update_time}</td>
                            <td>
                                <a class="btn btn-xs btn-default" href="{:url('admin/ariclecategory/edit',['id'=>$Row['id']])}">编辑</a>
                                <a class="btn btn-xs btn-default delete" href="{:url('admin/ariclecategory/destroy',['id'=>$Row['id']])}">删除</a>
                            </td>
                        </tr>
                        {/volist}
                        {/volist}
                        {/volist}
                    </table>
                </div>
            </div>
            <div class="panel-footer">

            </div>
        </div>
    </div>
</div>